﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="BaseData.aspx.cs" Inherits="LabMS.Web.Structure.BaseData" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>基本数据</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->
</head>
<body>
    <div id="site">
        <table cellpadding="0" cellspacing="0" border="0" height="100%" width="100%">
            <tr>
                <td style="width: 8px;">
                </td>
                <td valign="top" style="width: 147px; height: 100%; background-color: #ffffff;">
                    <table cellpadding="0" cellspacing="0" border="0" height="100%">
                        <tr valign="top">
                            <td>
                                <div id="nav">
                                    <form runat="server" id="form1">
                                        <ul class="category">
                                            <% if (UserType == "mana" && base.HaveModulePrivilege("JCSJ"))
                                               {
                                            %>
                                            <li>
                                                <label class="first">
                                                    基础数据</label>
                                                <ul class="item">
                                                    <% if (UserType == "mana" && base.HavePrivilege("ZYSJ"))
                                                       {
                                                           if (strURL == "") strURL = "../CoursePlan/ProfessionalList.aspx"; 
                                                    %>
                                                    <li><a href="../CoursePlan/ProfessionalList.aspx" target="mainFrame">专业数据</a></li>
                                                    <%} %>
                                                    <% if (UserType == "mana" && base.HavePrivilege("KCSJ"))
                                                       {
                                                           if (strURL == "") strURL = "../BaseData/BaseDataCourseList.aspx";  
                                                    %>
                                                    <li><a href="../BaseData/BaseDataCourseList.aspx" target="mainFrame">课程数据</a></li>
                                                    <%} %>
                                                    <% if (UserType == "mana" && base.HavePrivilege("JSSJ"))
                                                       {
                                                           if (strURL == "") strURL = "../BaseData/BaseDataTeacherList.aspx";   
                                                    %>
                                                    <li><a href="../BaseData/BaseDataTeacherList.aspx" target="mainFrame">教师数据</a></li>
                                                    <%} %>
                                                </ul>
                                            </li>
                                            <%} %>
                                            <% if (UserType == "mana" && base.HaveModulePrivilege("XSGL"))
                                               {
                                            %>
                                            <li>
                                                <label>
                                                    学生管理</label>
                                                <ul class="item">
                                                    <% if (UserType == "mana" && base.HavePrivilege("BJSJ"))
                                                    {
                                                        if (strURL == "") strURL = "../BaseData/ClassData.aspx";    
                                                    %>
                                                    <li><a href="../BaseData/ClassData.aspx" target="mainFrame">班级数据</a></li>
                                                    <%} %>
                                                    <% if (UserType == "mana" && base.HavePrivilege("XSSJ"))
                                                       {
                                                           if (strURL == "") strURL = "../BaseData/BaseDataStudentList.aspx";     
                                                    %>
                                                    <li><a href="../BaseData/BaseDataStudentList.aspx" target="mainFrame">学生数据</a></li>
                                                    <%} %>
                                                </ul>
                                            </li>
                                            <%} %>
                                        </ul>
                                    </form>
                                </div>
                            </td>
                        </tr>
                        <tr valign="bottom">
                            <td valign="bottom">
                                <div id="version">
                                    版本: 1.0</div>
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="width: 8px; background-color: #add2da;">
                </td>
                <td style="height: 100%;">
                    <iframe src="<%=strURL %>" frameborder="0" id="mainFrame"
                        name="mainFrame" marginwidth="0" marginheight="0" scrolling="auto" width="100%"
                        height="100%" hspace="0"></iframe>
                </td>
                <td style="width: 8px;">
                </td>
            </tr>
        </table>
    </div>

    <script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>

    <script type="text/javascript">
       $(function(){
            $("ul.category > li > label").click(function(){
                $(this).siblings("ul").animate({
                        height: "toggle",
                        opacity: "toggle"
                    },
                    800,
                    function(){
                        $(this).parent().siblings("li").find("ul.item").hide(500);
                });
            })

            $("ul.category li:first").find("ul").css("display", "block");
        });
    </script>

</body>
</html>
